// Copyright (c) Six Labors.
// Licensed under the Six Labors Split License.

using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.Processing.Processors.Filters;

namespace SixLabors.ImageSharp.Tests.Processing.Filters;

[Trait("Category", "Processors")]
public class ContrastTest : BaseImageOperationsExtensionTest
{
    [Fact]
    public void Contrast_amount_ContrastProcessorDefaultsSet()
    {
        this.operations.Contrast(1.5F);
        ContrastProcessor processor = this.Verify<ContrastProcessor>();

        Assert.Equal(1.5F, processor.Amount);
    }

    [Fact]
    public void Contrast_amount_rect_ContrastProcessorDefaultsSet()
    {
        this.operations.Contrast(1.5F, this.rect);
        ContrastProcessor processor = this.Verify<ContrastProcessor>(this.rect);

        Assert.Equal(1.5F, processor.Amount);
    }
}
